package homework.homework01;

import java.sql.Date;

/**
 *  班级类
 */

public class ClassBean {
    /*
        班级编号
     */
    private Integer id;

    /*
        班级名称
     */
    private String name;

    /*
        开班时间
     */
    private Date openTime;

    /*
        老师名字
     */
    private String teacherName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getOpenTime() {
        return openTime;
    }

    public void setOpenTime(Date openTime) {
        this.openTime = openTime;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    @Override
    public String toString() {
        return "ClassBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", openTime=" + openTime +
                ", teacherName='" + teacherName + '\'' +
                '}';
    }
}
